<div id="content">
    	<div id="conteiner">
        	<div id="left">
            	<div id="leftCont">
                    <div class="frameCont">
                        <div style="background-image: none;" class="pointerBlock dashBordBlock">
                            <div class="content">
                            	<strong class="title">ИНФО</strong>
                                <table cellspacing="0" cellpadding="0" border="0" style="margin-top: 30px;" class="communityInfoTable">
                                <tbody>
                                <% if logged_in?%> 
                                <tr>
                                    <td class="l">Действие:</td>
                                    <td class="r" style="color: rgb(244, 128, 0);">
                                     <strong><%= link_to 'Редактировать', edit_community_path(@community) if current_user == @community.user%></strong> 
                                    | <strong><%= community_join_link(@community, true)%></strong> 
                                    | <strong><%= link_to "Сделать запись", new_user_post_path(:user_id=>current_user, :community_id=>@community.id) if current_user.join_community?(@community)%></strong>
                                    </td>
                                </tr>
                                <% end %>
                                <tr>
                                    <td class="l">Сообщество:</td>
                                    <td class="r">
		                                  <img src="/images/ico_community.gif"/> 
		                                  <strong style="font-size:15px;">
		                                  	<%= link_to @community.title, community_posts_path(@community)%>
		                                  </strong>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="l">Тематика:</td>
                                    <td class="r"><%= link_to @community.subject, "#"%></td>
                                </tr>
                                <tr>
                                    <td class="l">Сайт:</td>
                                    <td class="r"><%= link_to @community.site, @community.site, :target=>"_blank" %></td>
                                </tr>
                                <tr>
                                    <td class="l">Местоположение:</td>
                                    <td class="r"><%= @community.city_name%>, <%= !@community.country.blank? ? @community.country.name : ""%></td>
                                </tr>
                                <tr>
                                <td class="l">Описание:</td>
                                <td class="r"><%= @community.notes%></td>
                                </tr>
                                <tr>
                <td class="l"><a href="#">Интересы:</a></td>
                <td class="r">
                	<strong><%=@community.tag_list.size%>:</strong> 
                	 <% @community.tag_list.each do |tag| %>
                        	<%= link_to tag, tag_users_path(:id=>tag) %>
                     <% end %>
                </td>
              </tr>
              <tr>
                <td class="l">Администраторы:</td>
                <td class="r"><% @community.admins.compact.each do |admin| %>
                		<%= link_to admin.login, user_path(admin)%> 
                 <%end%></td>
              </tr>
              <tr>
                <td class="l">Взаимные друзья:</td>
                <td class="r"><strong><%= @community.memberships.size %>:</strong> 
                  <%@community.memberships.each_with_index do |member, i|%>
                  <%= link_to member.user.login, user_path(member.user)%><%= ',' unless i == @community.memberships.size - 1 %>
                  <%end%></td>
              </tr>
                <tr><td class="l"/>
                <td class="r" style="font-size:10px;"><%= "Создано #{@community.created_at.strftime("%d-%m-%Y")}"%></td>
              </tr>
                                </tbody></table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div id="right">
        	<div id="rightCont">
            	<div style="width: 370px; float: right;">
                    <div class="dashBordBlock">
                        <div style="padding: 50px 42px 20px 0px; text-align: right;" class="content">
                            <%= logo(@community) %><br/>
                            <%#= link_to "все картинки", user_avatars_path(@community.user) unless @community.user.nil? %>
                            <%#= link_to "все картинки", edit_user_avatar_path(@community.user, 1) if logged_in? && (current_user == @community.user || current_user.admin? ) && !@community.user.nil? %>
                      </div>
                    </div>
                    <div class="pointerBlock dashBordBlock">
                        <div class="content">
                            <%#=image_tag (@community.logo.public_filename(:content), :class=>"dashBord") unless @community.logo.nil? %>
                            <%= image_tag 'banner_3.gif', :class=> "dashBord" %>
                        </div>
                    </div>
                </div>
             </div>
        </div>
       
    </div>
